%MY_CANNYEDGE Summary of this function goes here
% Simple plot of the original image, each Sobel filter and the resulting
% image with absolute magnitude.
function my_plotSobel( img )

[G Gx Gy] = my_sobelEdge(img);

figure;

%Enlarge screen so that the figures are not so small
set(gcf, 'Position', get(0,'Screensize'));

subplot(4, 1, 1);
imshow(img);
title('Original image (grayscale)');

subplot(4, 1, 2);
imshow(Gx);
title('Horizontal filter');

subplot(4, 1, 3);
imshow(Gy);
title('Vertical filter');

subplot(4, 1, 4);
imshow(G);
title('Absolute magnitude');

end